package stud.mpgame.net.description;

import stud.mpgame.network.MessageDescription;

import stud.mpgame.server.game.GameWorld;

public class GameWorldMessageDescription extends MessageDescription {
	
    private static final int ID = IDescriptionManager.GAME_WORLD_MESSAGE_DESCRIPTION;

    private static final int GAME_WORLD_USER_OBJECT_ID = 1; //GameWorld

    private static GameWorldMessageDescription instance = null;

    public int getID() {
        return ID;
    }

    private GameWorldMessageDescription() {
        this.registerUserObject(GAME_WORLD_USER_OBJECT_ID, GameWorld.class);
    }

    public static GameWorldMessageDescription getInstance() {
        if(instance == null){
            instance = new GameWorldMessageDescription();
        }
        return instance;
    }

}
